package com.fj.netty.chat.server.service;

import com.fj.netty.chat.pojo.GroupChat;
import io.netty.channel.Channel;

import java.util.Set;

/**
 * @author fj
 * @date 2024/1/12 14:17
 */
public interface GroupSession {
    GroupChat create(String username, String groupName, Set<String> members);
    void remove(String username, String groupName);
    GroupChat join(String username, String groupName);
    void quit(String username, String groupName);
    Set<String> members(String groupName);
    Set<Channel> memberChannels(String groupName);
}
